package com.xdz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xdz.entity.AttrEntity;
import com.xdz.entity.AttrGroupEntity;
import com.xdz.entity.vo.AttrgroupRelationVo;
import com.xdz.entity.vo.GroupAndAttrsVo;
import com.xdz.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author xdz
 * @email 1351959729@qq.com
 * @date 2020-12-08 20:30:45
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCategoryId(Map<String, Object> params, Long categoryId);

    List<AttrEntity> getGroupAttr(Long id);

    void attrRelationDelete(List<AttrgroupRelationVo> vos);

    PageUtils getGroupNoAttr(Map<String, Object> params, Long groupId);

    void addAttrRelation(List<AttrgroupRelationVo> vos);

    List<GroupAndAttrsVo> getGroupAndAttrs(Long categoryId);
}

